﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<skags.Models.ForumCreateAnswerViewModel>" %>
<% Html.RenderPartial("tinyForum"); %>
<% using (Html.BeginForm())
   {%>
        
        <fieldset>
            <legend>Svar</legend>

            <div class="editor-field">
                <%:Html.ValidationMessageFor(model => model.AnswerText)%>
                <%:Html.TextAreaFor(model => model.AnswerText, new {cols = 60, rows = 20})%>
            </div>
            
            <%= Html.HiddenFor(s => s.ThreadID) %>
            <p>
                <input type="submit" value="Vista" />
            </p>
        </fieldset>
        <%
        }
        %>
    <div>
        <%: Html.ActionLink("Aftur á Spjallborð", "Index") %>
    </div>
